<template>
		<van-nav-bar title="活动任务量" />
		
		<van-cell-group inset style="margin-top: 0.625rem;margin-bottom: 0.625rem;">
		<van-field label="保证金" v-model="price" placeholder="请输入保证金" required/>
		<van-field label="计算口径" required>
			<template #input>
				<van-radio-group v-model="type" direction="horizontal">
					<van-radio name="1">发货</van-radio>
					<van-radio name="2">回款</van-radio>
					<van-radio name="3">纯销</van-radio>
				</van-radio-group>
			</template>
		</van-field>
		</van-cell-group>
		
		<van-cell-group inset v-for="(item,index) in 3" :key="index" style="margin-top: 0.625rem;margin-bottom: 0.625rem;">
			<van-cell title="活动类型" value="地推" />
			<van-cell title="活动场次" value="3" />
			<van-cell title="开始时间" value="2024-01-01" />
			<van-cell title="截止时间" value="2024-03-01" />
			<van-cell title="品规" value="布洛芬(0.5mg/片)" />
			<van-cell title="单位" value="盒" />
			<van-cell title="结算价" value="1" />
			<van-field label="总销量" placeholder="请设置总销量" @click="showCenter = true" required />
		</van-cell-group>
		<van-action-bar>
			<van-action-bar-icon icon="arrow-left" text="上一步" />
			<van-action-bar-icon icon="gold-coin-o" text="9000" />
			<van-action-bar-button color="#00bffe" type="danger" text="配送商业&联系人" @click="submit"/>
		</van-action-bar>
</template>

<script setup lang="ts">
	import { ref } from 'vue'
	import { useRouter } from 'vue-router'
	const router = useRouter()
	const price = ref(0)
	const type = ref("")
	const submit = ()=>{
		router.push('/businessperson')
	}
</script>

<style>
</style>